<!-- Main Sidebar Container -->
<aside class="main-sidebar sidebar-dark-primary elevation-4">
    <!-- Brand Logo -->
    <a href="###"  target="_blank" class="brand-link">
        <img th:src="${application.logoUrl}"   class="brand-image img-circle elevation-3"  style="opacity: .8">
        <span class="brand-text font-weight-light" th:title="${application.wgName}" th:text="${application.wgShortName}">CLOUDTI</span>
    </a>

    <!-- Sidebar -->
    <div class="sidebar">
        <!-- Sidebar user panel (optional)
        <div class="user-panel mt-3 pb-3 mb-3 d-flex">
            <div class="image">
                <img th:src="@{'/static/AdminLTE/dist/img/user2-160x160.jpg'}" class="img-circle elevation-2" alt="User Image">
            </div>
            <div class="info">
                <a href="#" class="d-block">Alexander Pierce</a>
            </div>
        </div>
        -->

        <!-- Sidebar Menu -->
        <nav class="mt-2">
            <ul class="nav nav-pills nav-sidebar flex-column" data-widget="treeview" role="menu" data-accordion="false">
                <!-- Add icons to the links using the .nav-icon class
                     with font-awesome or any other icon font library -->


                <li class="nav-item">
                    <th:block th:if="${session.menuActive eq '01'}">
                        <a th:href="@{'/dash/main'}" class="nav-link active">
                    </th:block>
                    <th:block th:unless="${session.menuActive eq '01'}">
                        <a th:href="@{'/dash/main'}" class="nav-link">
                    </th:block>
                    <i class="nav-icon fas fa-book"></i>
                    <p>监控概要</p>
                    </a>
                </li>

                <th:block th:if="${#strings.startsWith(session.menuActive,'1')}">
                    <li class="nav-item has-treeview menu-open">
                        <a href="javascript:void(0);" class="nav-link active">
                </th:block>
                <th:block th:unless="${#strings.startsWith(session.menuActive,'1')}">
                    <li class="nav-item has-treeview">
                        <a  href="javascript:void(0);" class="nav-link">
                </th:block>
                        <i class="nav-icon fas fa-tachometer-alt"></i>
                        <p>
                            资源管理
                            <i class="right fas fa-angle-left"></i>
                        </p>
                    </a>
                    <ul class="nav nav-treeview">
                        <li class="nav-item">
                            <th:block th:if="${session.menuActive eq '12'}">
                                <a th:href="@{'/systemInfo/systemInfoList'}" class="nav-link active">
                            </th:block>
                            <th:block th:unless="${session.menuActive eq '12'}">
                                <a th:href="@{'/systemInfo/systemInfoList'}" class="nav-link">
                            </th:block>
                                <i class="fas fa-desktop nav-icon"></i>
                                <p>主机管理</p>
                            </a>
                        </li>
                        <li class="nav-item">
                            <th:block th:if="${session.menuActive eq '13'}">
                                <a th:href="@{'/appInfo/list'}" class="nav-link active">
                            </th:block>
                            <th:block th:unless="${session.menuActive eq '13'}">
                                <a th:href="@{'/appInfo/list'}" class="nav-link">
                            </th:block>
                                <i class="fas fa-tasks nav-icon"></i>
                                <p>进程管理</p>
                            </a>
                        </li>
                        <li class="nav-item">
                            <th:block th:if="${session.menuActive eq '15'}">
                                <a th:href="@{'/portInfo/list'}" class="nav-link active">
                            </th:block>
                            <th:block th:unless="${session.menuActive eq '15'}">
                                <a th:href="@{'/portInfo/list'}" class="nav-link">
                            </th:block>
                            <i class="fas fa-leaf nav-icon"></i>
                            <p>端口管理</p>
                            </a>
                        </li>
                        <li class="nav-item">
                            <th:block th:if="${session.menuActive eq '16'}">
                                <a th:href="@{'/fileWarnInfo/list'}" class="nav-link active">
                            </th:block>
                            <th:block th:unless="${session.menuActive eq '16'}">
                                <a th:href="@{'/fileWarnInfo/list'}" class="nav-link">
                            </th:block>
                            <i class="fas fa-comment nav-icon"></i>
                            <p>日志监控</p>
                            </a>
                        </li>
                        <li class="nav-item">
                            <th:block th:if="${session.menuActive eq '17'}">
                                <a th:href="@{'/fileSafe/list'}" class="nav-link active">
                            </th:block>
                            <th:block th:unless="${session.menuActive eq '17'}">
                                <a th:href="@{'/fileSafe/list'}" class="nav-link">
                            </th:block>
                            <i class="fas fa-shield-alt nav-icon"></i>
                            <p>文件防篡改</p>
                            </a>
                        </li>
                        <li class="nav-item">
                            <th:block th:if="${session.menuActive eq '14'}">
                                <a th:href="@{'/dockerInfo/list'}" class="nav-link active">
                            </th:block>
                            <th:block th:unless="${session.menuActive eq '14'}">
                                <a th:href="@{'/dockerInfo/list'}" class="nav-link">
                            </th:block>
                            <i class="fab fa-docker nav-icon"></i>
                            <p>DOCKER管理</p>
                            </a>
                        </li>
                    </ul>
                </li>


                <th:block th:if="${#strings.startsWith(session.menuActive,'4')}">
                    <li class="nav-item has-treeview menu-open">
                        <a  href="javascript:void(0);" class="nav-link active">
                </th:block>
                <th:block th:unless="${#strings.startsWith(session.menuActive,'4')}">
                    <li class="nav-item has-treeview">
                        <a  href="javascript:void(0);" class="nav-link">
                </th:block>
                <i class="nav-icon fas fa-table"></i>
                <p title="检测数据表的数据量变化趋势">
                    数据监控
                    <i class="fas fa-angle-left right"></i>
                </p>
                </a>
                <ul class="nav nav-treeview">
                    <li class="nav-item">
                        <th:block th:if="${session.menuActive eq '41'}">
                            <a th:href="@{'/dbInfo/list'}" class="nav-link active">
                        </th:block>
                        <th:block th:unless="${session.menuActive eq '41'}">
                            <a th:href="@{'/dbInfo/list'}" class="nav-link">
                        </th:block>
                        <i class="fas fa-database nav-icon"></i>
                        <p>数据源管理</p>
                        </a>
                    </li>
                    <li class="nav-item">
                        <th:block th:if="${session.menuActive eq '42'}">
                            <a th:href="@{'/dbTable/list'}" class="nav-link active">
                        </th:block>
                        <th:block th:unless="${session.menuActive eq '42'}">
                            <a th:href="@{'/dbTable/list'}" class="nav-link">
                        </th:block>
                        <i class="fas fa-table nav-icon"></i>
                        <p>数据表管理</p>
                        </a>
                    </li>

                </ul>
                </li>

                <th:block th:if="${#strings.startsWith(session.menuActive,'5')}">
                    <li class="nav-item has-treeview menu-open">
                        <a  href="javascript:void(0);" class="nav-link active">
                </th:block>
                <th:block th:unless="${#strings.startsWith(session.menuActive,'5')}">
                    <li class="nav-item has-treeview">
                        <a  href="javascript:void(0);" class="nav-link">
                </th:block>
                <i class="nav-icon fas fa-link"></i>
                <p title="检测服务接口的健康状态" >
                    服务接口
                    <i class="fas fa-angle-left right"></i>
                </p>
                </a>
                <ul class="nav nav-treeview">
                    <li class="nav-item">
                        <th:block th:if="${session.menuActive eq '51'}">
                            <a th:href="@{'/heathMonitor/list'}" class="nav-link active">
                        </th:block>
                        <th:block th:unless="${session.menuActive eq '51'}">
                            <a th:href="@{'/heathMonitor/list'}" class="nav-link">
                        </th:block>
                        <i class="far fa-circle nav-icon"></i>
                        <p>服务接口检测</p>
                        </a>
                    </li>
                </ul>
                </li>


                <li class="nav-item has-treeview">
                <a  href="javascript:void(0);" class="nav-link">
                <i class="nav-icon fas fa-th"></i>
                <p title="请确认配置文件已开启展示看板" >
                    展示看板
                    <i class="fas fa-angle-left right"></i>
                </p>
                </a>
                <ul class="nav nav-treeview">
                    <li class="nav-item">
                        <a target="_blank" th:href="@{'/daping/index?dashView=1'}" class="nav-link">
                        <i class="nav-icon far fa-circle text-danger"></i>
                        <p>大屏展板</p>
                        </a>
                    </li>
                    <li class="nav-item">
                        <a target="_blank" th:href="@{'/dash/main?dashView=1'}" class="nav-link">
                        <i class="far fa-circle nav-icon"></i>
                        <p>公众看板</p>
                        </a>
                    </li>
                </ul>
                </li>

               <li class="nav-item">
                    <th:block th:if="${session.menuActive eq '61'}">
                        <a th:href="@{'/dceInfo/list'}" class="nav-link active">
                    </th:block>
                    <th:block th:unless="${session.menuActive eq '61'}">
                        <a th:href="@{'/dceInfo/list'}" class="nav-link">
                    </th:block>
                    <i class="nav-icon  fa fa-cloud"></i>
                    <p>数通监测</p>
                    </a>
                </li>

                <li class="nav-item">
                    <th:block th:if="${session.menuActive eq '71'}">
                        <a th:href="@{'/tuopu/tuopuList'}" class="nav-link active">
                    </th:block>
                    <th:block th:unless="${session.menuActive eq '71'}">
                        <a th:href="@{'/tuopu/tuopuList'}" class="nav-link">
                    </th:block>
                    <i class="nav-icon  far fa-plus-square"></i>
                    <p>拓扑图</p>
                    </a>
                </li>

                <li class="nav-item">
                    <th:block th:if="${session.menuActive eq '91'}">
                        <a th:href="@{'/report/index'}" class="nav-link active">
                    </th:block>
                    <th:block th:unless="${session.menuActive eq '91'}">
                        <a th:href="@{'/report/index'}" class="nav-link">
                    </th:block>
                    <i class="nav-icon  fas fa-chart-pie"></i>
                    <p>统计分析</p>
                    </a>
                </li>


                <th:block th:if="${#strings.startsWith(session.menuActive,'2')}">
                    <li class="nav-item has-treeview menu-open">
                        <a  href="javascript:void(0);" class="nav-link active">
                </th:block>
                <th:block th:unless="${#strings.startsWith(session.menuActive,'2')}">
                    <li class="nav-item has-treeview">
                        <a  href="javascript:void(0);" class="nav-link">
                </th:block>
                <i class="nav-icon fas fa-laptop-code"></i>
                <p title="系统管理" >
                    系统管理
                    <i class="fas fa-angle-left right"></i>
                </p>
                </a>
                <ul class="nav nav-treeview">
                    <li class="nav-item">
                        <th:block th:if="${session.menuActive eq '21'}">
                            <a th:href="@{'/log/list'}" class="nav-link active">
                        </th:block>
                        <th:block th:unless="${session.menuActive eq '21'}">
                            <a th:href="@{'/log/list'}" class="nav-link">
                        </th:block>
                        <i class="nav-icon  fas fa-copy"></i>
                        <p>系统日志</p>
                        </a>
                    </li>
                    <li class="nav-item">
                        <th:block th:if="${session.menuActive eq '22'}">
                            <a th:href="@{'/mailset/list'}" class="nav-link active">
                        </th:block>
                        <th:block th:unless="${session.menuActive eq '22'}">
                            <a th:href="@{'/mailset/list'}" class="nav-link">
                        </th:block>
                        <i class="nav-icon far fa-envelope"></i>
                        <p>邮件告警</p>
                        </a>
                    </li>
                    <li class="nav-item">
                        <th:block th:if="${session.menuActive eq '23'}">
                            <a th:href="@{'/shellInfo/list'}" class="nav-link active">
                        </th:block>
                        <th:block th:unless="${session.menuActive eq '23'}">
                            <a th:href="@{'/shellInfo/list'}" class="nav-link">
                        </th:block>
                        <i class="nav-icon fas fa-terminal"></i>
                        <p>指令下发</p>
                        </a>
                    </li>
                </ul>
                </li>

                <li class="nav-item">
                    <th:block th:if="${session.menuActive eq '81'}">
                        <a th:href="@{'/equipment/list'}" class="nav-link active">
                    </th:block>
                    <th:block th:unless="${session.menuActive eq '81'}">
                        <a th:href="@{'/equipment/list'}" class="nav-link">
                    </th:block>
                    <i class="nav-icon fas fa-server"></i>
                    <p>资产管理</p>
                    </a>
                </li>


                <!--<li class="nav-item">
                    <a target="_blank" href="###/elasticsearch-head/index.html"
                       class="nav-link">
                        <i class="nav-icon fas fa-search-plus"></i>
                        <p>ES监控工具</p>
                    </a>
                </li>-->




            </ul>
        </nav>
        <!-- /.sidebar-menu -->
    </div>
    <!-- /.sidebar -->
</aside>